home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / May 96 / Re Feedbacks and Questions -.2 < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  1.8 KB  |  [TEXT/ttxt]

  1. Subject:     Re: Feedbacks and Questions - ODF R1
  2. Sent:        5/22/96 12:31 AM
  3. Received:    5/22/96 8:31 AM
  4. From:        Shinsaku Akogi, ak3s-akg@asahi-net.or.jp
  5. Reply-To:    ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8.  
  9. >Look at the ODFClock. It maintains an oval used shape which is very 
  10. >similar to what you want to do.
  11.  
  12. I tried to do what ODFClock's AdjustUsedShape and AdjustActiveShape,
  13. spending some time before I ask another question that beats me.
  14. What I want to do must be somewhat as below:
  15. -------------------------------------------------------------
  16. ODShape* CButtonFrame::AdjustUsedShape(Environment* ev, 
  17.                                                                    ODShape*
  18. suggestedUsedShape)
  19. {       
  20.         if (GetViewType(ev) != FW_CPart::gViewAsFrameToken)
  21.                 return FW_CFrame::AdjustUsedShape(ev, suggestedUsedShape);
  22.  
  23.         FW_CRect rect(usedRect);
  24.         
  25.         FW_CRect usedRect = FW_GetShapeBoundingBox(ev, suggestedUsedShape);
  26.  
  27.         ODShape* newUsedShape;
  28.                 
  29.                 newUsedShape = ::FW_CreateRoundRectODShape(ev, rect, ???);
  30.         return newUsedShape;
  31. }
  32. ODShape* CButtonFrame::AdjustActiveShape(Environment* ev, 
  33.                                         ODFacet* facet, ODShape*
  34. suggestedActiveShape)
  35. {
  36.         if (GetViewType(ev) != FW_CPart::gViewAsFrameToken)
  37.                 return FW_CFrame::AdjustActiveShape(ev, facet, 
  38.                                                                            
  39.     suggestedActiveShape);
  40.  
  41.         suggestedActiveShape->Acquire(ev);
  42.         return suggestedActiveShape;
  43. }
  44. ---------------------------------------------------------------------
  45. "???" part is the question:
  46. How do I get the value for ovalSize parameter of the button?
  47.